package com.yhy.hello.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * describe:
 *
 * @author helloworldyu
 * @date 2018/5/10
 */
@RestController
public class HelloController {
	@RequestMapping("/")
	public Response hello(){
		return new Response("nihao",1);
	}


	public static class Response{
		String msg;
		Integer code;

		Response(String msg, Integer code) {
			this.msg = msg;
			this.code = code;
		}

		public String getMsg() {
			return msg;
		}

		public void setMsg(String msg) {
			this.msg = msg;
		}

		public Integer getCode() {
			return code;
		}

		public void setCode(Integer code) {
			this.code = code;
		}
	}


}